package com.test.java;

import java.lang.reflect.Method;

/**
 * @Date 22.6.19
 * @Created by HANGGE
 * @Description
 */
public class Demo01 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> aClass = Class.forName("com.test.java.User");
        Class<User> userClass = User.class;

        Method[] methods = userClass.getMethods();
        for (Method method : methods) {
            String name = method.getName();
            System.out.println(name);
        }

    }

    //java中的变量在使用之前一定先赋值
    // 默认初始值
    int y ;
    // com.test.java.Demo01.test(int , int)
    public void test(int x , int y) {
        int i = 0;
        String name = "zss";

        System.out.println(i);
        System.out.println(name);
        System.out.println(y);

    }

  //  public static void main(String[] args) {
      //  new  Demo01().test() ;
  //  }
}
